package top.kiterunner.learning.designpatterns_test.proxy_pattern;

/**
 * AdorynZhao in Tencent-UESTC.
 * Source Code Created on 2017/7/31.
 */
public class WangPoWoman implements KindWoman {

    private KindWoman kindWoman;

    public WangPoWoman() {
        this.kindWoman = new PanJinlianWoman();
    }

    public WangPoWoman(KindWoman woman) {
        this.kindWoman = woman;
    }

    @Override
    public void makeEyesWithMan() {
        System.out.println("通过王婆的渠道...");
        this.kindWoman.makeEyesWithMan();
    }

    @Override
    public void chatWithMan() {
        System.out.println("通过王婆的渠道...");
        this.kindWoman.chatWithMan();
    }
}
